package com.iweb.user.service;

import com.iweb.user.dao.UserMapper;
import com.iweb.user.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserserviceImpl implements UserService{
    @Autowired
    UserMapper userMapper;
    @Override
    public int addOne(User user) {
        return userMapper.addOne(user);
    }

    @Override
    public int selectOne(User user) {
        return userMapper.selectOne(user);
    }

    @Override
    public User selectById(Integer user_id) {
        return userMapper.selectById(user_id);
    }

    @Override
    public int editOne(User user) {
        return userMapper.editOne(user);
    }
}
